All Questions
8 questions
-1votes
3answers
117views
Finding element of file in KSH
please help me figure out what I am doing wrong. I have this file called "res.xml" <sequence type="a"> <transaction> <branchSerial>1</branchSerial> &...
-3votes
2answers
246views
Extract string followed by specific word/symbol
I have two lines as shown below in my input file input.txt and I need to extract claimStartDate from first line and claimEndDate from second line. <ProfessionalClaim paymentIndicator="P" ...
0votes
1answer
2kviews
extract xml tag value from the file to Variable
I Have a file. where I need to extract dataTemplate name. need a value in datalob=XXPFARCUDO_DATA <?xml version="1.0" encoding="windows-1252" ?> <dataTemplate name="XXPFARCUDO_DATA" ...
2votes
3answers
1kviews
extract xml tag value from file where file name has spaces
I have a file 'EXXARS - Physical Inventory Adjustment Report US PDF_es_ES.xlf' file data: <header> <prop-group name="ora_reconstruction"> <prop prop-type="TemplateCode">...
-4votes
1answer
304views
I wish to extract several nodes in an XML document based on their content using ksh Script
pre requisite:Should be done using ksh script commands I have the following document, and need to extract all the <Sw:RMARecrd>s whose <Doc:Crspdt> children contain BSDTUS30 or MITMUS30. &...
1vote
1answer
796views
How to convert a generic xml format block to properties format String from an xml file using ksh script [closed]
With the conditions: I cannot use any XML parser tool as I don't have permission , read only My xmllint version does not support xpath, and I cannot update it , read only I dont have xmlstarlet and ...
0votes
2answers
770views
How to implement awk range pattern in fetching an xml block when the input parameter is in the middle of the block
I am trying to fetch an xml block like this: <machine name="sample1" min="1" max="10" idleTime="300" backend="ABC,XYZ"> <handler className="com.abc.xyz.qwerty.foo.FooBar" /&...
0votes
5answers
16kviews
How to grep an xml block in an xml file using a keyword in ksh
I have a file Sample.xml which contains a lot of services inside it and the structure looks like this Notes: I cannot use any XML parser tool as I don't have permission, read only My xmllint ...